server {
    listen $PORT;
    server_tokens off;

    location /api/ {
        proxy_set_header Host $http_host;
        proxy_pass http://backend:8000/api/;
    }

    location /docs/ {
        proxy_set_header Host $http_host;
        proxy_pass http://backend:8000/docs;
    }

    location /redoc/ {
        proxy_set_header Host $http_host;
        proxy_pass http://backend:8000/redoc;
    }

    location /openapi.json {
        proxy_set_header Host $http_host;
        proxy_pass http://backend:8000/openapi.json;
    }
}